using CStock;
using System;
using System.Diagnostics;
using NUnit.Framework;
namespace TestCases.StockData
{
    /// <summary>
    /// Provides the base class for testcases
    /// </summary>
	public abstract class ProgramContext_TestCases
	{
		protected IProgramContext programContext;

        [SetUp]
        public void SetupProgramContext_TestCases() 
		{
            ProgramFactory pf = new ProgramFactory();
            pf.Create_TestData();
            programContext = pf.StockObjectBase as ProgramContext;
		}

        [TearDown]
        public void TestTearDown()
        {
            CStock.ProgramContext context = programContext as CStock.ProgramContext;
            context.Dispose();
        }
	}	
}